<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<article class="module width_half">
    <header>
        <h3 class="tabs_involved">Categories Manager <em>(${fn:length(categoriesLV)} items)</em></h3>
    </header>
    <div class="tab_container">
        <div id="tab1" class="tab_content">
            <table class="tablesorter" cellspacing="0">
                <thead>
                    <tr>
                        <th>Category Name</th>
                        <th>Number of Video Games</th>
                        <th>Actions</th>
                    </tr>
                </thead>
                <tbody>
                    <c:forEach var="clv" items="${categoriesLV}">
                        <tr>
                            <td>${clv.categorie.name}</td>
                            <td>${clv.totalJeuxVideo}</td>
                            <td>
                                <input type="image" src="images/icn_edit.png" title="Edit" />
                                <input type="image" src="images/icn_trash.png" title="Trash" />
                            </td>
                        </tr>
                    </c:forEach>
                </tbody>
            </table>
        </div><!-- end of #tab1 -->
    </div><!-- end of .tab_container -->
</article><!-- end of content manager article -->
<article class="module width_half">
    <header><h3>Create New Category</h3></header>
    <div class="module_content">
        <fieldset>
            <label>Category Name</label>
            <input type="text" />
        </fieldset>
        <div class="clear"></div>
    </div>
    <footer>
        <div class="submit_link">
            <input type="submit" value="Publish" class="alt_btn">
            <input type="submit" value="Reset">
        </div>
    </footer>
</article><!-- end of messages article -->
<div class="clear"></div>